package kr.hkit.powerjava.chapter06;

import java.util.Scanner;

public class Pro1 {
	public static void main(String[] args) {
		int a;
		int b;
		int c;

		Scanner input = new Scanner(System.in);
		System.out.print("정수를 입력하시오: ");
		a = input.nextInt();
		System.out.print("정수를 입력하시오: ");
		b = input.nextInt();
		System.out.print("정수를 입력하시오: ");
		c = input.nextInt();

		if (a > b && a > c) {
			if (b > c)
				System.out.print("정렬된 숫자: " + c + " " + b + " " + a);
			else
				System.out.print("정렬된 숫자: " + b + " " + c + " " + a);
		} else if (b > a && b > c) {
			if (a > c)
				System.out.print("정렬된 숫자: " + c + " " + a + " " + b);
			else
				System.out.print("정렬된 숫자: " + a + " " + c + " " + b);
		} else if (c > a && c > b) {
			if (a > b)
				System.out.print("정렬된 숫자: " + b + " " + a + " " + c);
			else
				System.out.print("정렬된 숫자: " + a + " " + b + " " + c);
		}

	}

}
